package com.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;

import java.io.Serializable;
import java.util.Date;

public class SysUser implements Serializable {

    /**主键*/
    private Long id;

    /**是否启用*/
    private Boolean enable;

    /**密码*/
    private String password;

    /**真实名称*/
    private String realName;

    /**用户名*/
    private String userName;

    /**角色*/
    private String role;

    /**创建时间*/
    private Date createTime;

    /**创建人*/
    private String createdUser;

    /**修改时间*/
    private Date updateTime;

    /**修改者*/
    private String updatedUser;

    /**获取主键*/
    public Long getId() {
        return id;
    }

    /**设置主键*/
    public void setId(Long id) {
        this.id = id;
    }

    /**获取是否启用*/
    public Boolean getEnable() {
        return enable;
    }

    /**设置是否启用*/
    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    /**获取密码*/
    public String getPassword() {
        return password;
    }

    /**设置密码*/
    public void setPassword(String password) {
        this.password = password;
    }

    /**获取真实名称*/
    public String getRealName() {
        return realName;
    }

    /**设置真实名称*/
    public void setRealName(String realName) {
        this.realName = realName;
    }

    /**获取用户名*/
    public String getUserName() {
        return userName;
    }

    /**设置用户名*/
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**获取角色*/
    public String getRole() {
        return role;
    }

    /**设置角色*/
    public void setRole(String role) {
        this.role = role;
    }

    /**获取创建时间*/
    public Date getCreateTime() {
        return createTime;
    }

    /**设置创建时间*/
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**获取创建人*/
    public String getCreatedUser() {
        return createdUser;
    }

    /**设置创建人*/
    public void setCreatedUser(String createdUser) {
        this.createdUser = createdUser;
    }

    /**获取修改时间*/
    public Date getUpdateTime() {
        return updateTime;
    }

    /**设置修改时间*/
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**获取修改者*/
    public String getUpdatedUser() {
        return updatedUser;
    }

    /**设置修改者*/
    public void setUpdatedUser(String updatedUser) {
        this.updatedUser = updatedUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("id", getId())
                .append("enable", getEnable())
                .append("password", getPassword())
                .append("realName", getRealName())
                .append("userName", getUserName())
                .append("role", getRole())
                .append("createTime", getCreateTime())
                .append("createdUser", getCreatedUser())
                .append("updateTime", getUpdateTime())
                .append("updatedUser", getUpdatedUser())
                .toString();
    }
}